package tako.wisers.com.android.apis.event;

public class Event {
	public static final int EVENT_CLICK = 0;
	public static final int EVENT_KEY_DOWN = 1;
	public static final int EVENT_ITEM_CLICK = 2;
	public static final int EVENT_SWITCH = 3;

	private int id;
	private int type;
	private boolean dismissDialog;

	public Event(int id, int type) {
		this.id = id;
		this.type = type;
	}
	
	public Event(int id, int type, boolean dismissDialog) {
		this.id = id;
		this.type = type;
		this.dismissDialog = dismissDialog;
	}

	public int getId() {
		return id;
	}

	public int getType() {
		return type;
	}

	@Override
	public String toString() {
		return type + "_" + id;
	}

	public boolean isDismissDialog() {
		return dismissDialog;
	}

	public void setDismissDialog(boolean dismissDialog) {
		this.dismissDialog = dismissDialog;
	}
	
	
}
